var mc=require("../controllers/user.server.controller");
module.exports=function(app){

	app.route("/user").get(mc.findAllUsers)
	.post(mc.addUser);

	app.route("/user/:id")
	.put(mc.updateUser)
	.delete(mc.deleteUser);
	
	app.param("id",mc.findUserById);
	
}